400
How can I display the column using currency format and enlarge the font for certain values

with ComboBox1 do
begin
	with (IUnknown(Columns.Add('Currency')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		Def[EXCOMBOBOXLib_TLB.exCellCaptionFormat] := OleVariant(1);
		FormatColumn := 'len(value) ? ((0:=dbl(value)) < 10 ? ''<fgcolor=808080><font ;7>'' : ''<b>'') + currency(=:0)';
	end;
	with Items do
	begin
		AddItem('1.23');
		AddItem('2.34');
		AddItem('9.94');
		AddItem('11.94');
		AddItem('1000');
	end;
end
399
How can I get the number of occurrences of a specified string in the cell

with ComboBox1 do
begin
	Columns.Add('');
	with (IUnknown(Columns.Add('occurrences')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		ComputedField := 'lower(%0) count ''o''';
		FormatColumn := '''contains '' + value + '' of \''o\'' chars''';
	end;
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1 oooof the root');
		InsertItem(h,Null,'Child 2');
		InsertItem(h,Null,'Child 3');
		ExpandItem[h] := True;
	end;
end
398
How can I display dates in my format

with ComboBox1 do
begin
	with (IUnknown(Columns.Add('Date')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		Def[EXCOMBOBOXLib_TLB.exCellCaptionFormat] := OleVariant(1);
		FormatColumn := '''<b>'' + year(0:=date(value)) + ''</b><fgcolor=808080><font ;6> ('' + month(=:0) + '' - '' + day(=:0) +'')''';
	end;
	with Items do
	begin
		AddItem('1/21/2001');
		AddItem('2/22/2002');
		AddItem('3/13/2003');
		AddItem('4/24/2004');
	end;
end
397
How can I display dates in short format

with ComboBox1 do
begin
	(IUnknown(Columns.Add('Date')) as EXCOMBOBOXLib_TLB.Column).FormatColumn := 'shortdate(value)';
	with Items do
	begin
		AddItem('1/1/2001');
		AddItem('2/2/2002');
		AddItem('3/3/2003');
		AddItem('4/4/2004');
	end;
end
396
How can I display dates in long format

with ComboBox1 do
begin
	(IUnknown(Columns.Add('Date')) as EXCOMBOBOXLib_TLB.Column).FormatColumn := 'longdate(value)';
	with Items do
	begin
		AddItem('1/1/2001');
		AddItem('2/2/2002');
		AddItem('3/3/2003');
		AddItem('4/4/2004');
	end;
end
395
How can I display only the right part of the cell

with ComboBox1 do
begin
	Columns.Add('');
	with (IUnknown(Columns.Add('Right')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		ComputedField := '%0 right 2';
		FormatColumn := '''"'' + value + ''"''';
	end;
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		InsertItem(h,Null,'SChild 3');
		ExpandItem[h] := True;
	end;
end
394
How can I display only the left part of the cell

with ComboBox1 do
begin
	Columns.Add('');
	(IUnknown(Columns.Add('Left')) as EXCOMBOBOXLib_TLB.Column).ComputedField := '%0 left 2';
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		InsertItem(h,Null,'SChild 3');
		ExpandItem[h] := True;
	end;
end
393
How can I display true or false instead 0 and -1

with ComboBox1 do
begin
	(IUnknown(Columns.Add('Boolean')) as EXCOMBOBOXLib_TLB.Column).FormatColumn := 'value != 0 ? ''true'' : ''false''';
	with Items do
	begin
		AddItem(OleVariant(True));
		AddItem(OleVariant(False));
		AddItem(OleVariant(True));
		AddItem(OleVariant(0));
		AddItem(OleVariant(1));
	end;
end
392
How can I display icons or images instead numbers

with ComboBox1 do
begin
	Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 
	'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 
	'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 
	'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
	with (IUnknown(Columns.Add('Icons')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		Def[EXCOMBOBOXLib_TLB.exCellCaptionFormat] := OleVariant(1);
		FormatColumn := '''The cell displays the icon <img>''+value+''</img> instead '' + value';
	end;
	with Items do
	begin
		AddItem(OleVariant(1));
		AddItem(OleVariant(2));
		AddItem(OleVariant(3));
	end;
end
391
How can I display the column using currency

with ComboBox1 do
begin
	(IUnknown(Columns.Add('Currency')) as EXCOMBOBOXLib_TLB.Column).FormatColumn := 'currency(dbl(value))';
	with Items do
	begin
		AddItem('1.23');
		AddItem('2.34');
		AddItem('0');
		AddItem(OleVariant(5));
		AddItem('10000.99');
	end;
end
390
How can I display the currency only for not empty cells

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Currency')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'len(%0) ? currency(dbl(%0)) : ''''';
	with Items do
	begin
		AddItem('1.23');
		AddItem('2.34');
		AddItem('0');
		ItemBackColor[AddItem(Null)] := $8080ff;
		AddItem('10000.99');
	end;
end
389
Is there a function to display the number of days between two date including the number of hours

with ComboBox1 do
begin
	(IUnknown(Columns.Add('Start')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
	Columns.Add('End');
	(IUnknown(Columns.Add('Duration')) as EXCOMBOBOXLib_TLB.Column).ComputedField := '2:=((1:=int(0:= date(%1)-date(%0))) = 0 ? '''' : str(=:1) + '' day(s)'') + ( 3:=round(24*(=:0-floor(=:0))) ? (len(=:2) ? '' and '' : ''' + 
	''') + =:3 + '' hour(s)'' : '''' )';
	with Items do
	begin
		h := AddItem('1/11/2001');
		CellCaption[OleVariant(h),OleVariant(1)] := '1/14/2001';
		h := AddItem('2/22/2002 12:00:00 PM');
		CellCaption[OleVariant(h),OleVariant(1)] := '3/14/2002 1:00:00 PM';
		h := AddItem('3/13/2003');
		CellCaption[OleVariant(h),OleVariant(1)] := '4/11/2003 11:00:00 AM';
	end;
end
388
Is there a function to display the number of days between two date including the number of hours

with ComboBox1 do
begin
	Columns.Add('Start');
	Columns.Add('End');
	(IUnknown(Columns.Add('Duration')) as EXCOMBOBOXLib_TLB.Column).ComputedField := '"D " + int(date(%1)-date(%0)) + " H " + round(24*(date(%1)-date(%0) - floor(date(%1)-date(%0))))';
	with Items do
	begin
		h := AddItem('1/11/2001');
		CellCaption[OleVariant(h),OleVariant(1)] := '1/14/2001 11:00:00 PM';
		h := AddItem('2/22/2002 12:00:00 PM');
		CellCaption[OleVariant(h),OleVariant(1)] := '3/14/2002 1:00:00 PM';
		h := AddItem('3/13/2003');
		CellCaption[OleVariant(h),OleVariant(1)] := '4/11/2003 11:00:00 AM';
	end;
end
387
How can I display the number of days between two dates

with ComboBox1 do
begin
	Columns.Add('Start');
	Columns.Add('End');
	(IUnknown(Columns.Add('Duration')) as EXCOMBOBOXLib_TLB.Column).ComputedField := '(date(%1)-date(%0)) + '' days''';
	with Items do
	begin
		h := AddItem('1/11/2001');
		CellCaption[OleVariant(h),OleVariant(1)] := '1/14/2001';
		h := AddItem('2/22/2002');
		CellCaption[OleVariant(h),OleVariant(1)] := '3/14/2002';
		h := AddItem('3/13/2003');
		CellCaption[OleVariant(h),OleVariant(1)] := '4/11/2003';
	end;
end
386
How can I get second part of the date

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('Second')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'sec(date(%0))';
	with Items do
	begin
		AddItem('1/11/2001 10:10:00 AM');
		AddItem('2/22/2002 11:01:22 AM');
		AddItem('3/13/2003 12:23:01 PM');
		AddItem('4/14/2004 1:11:59 PM');
	end;
end
385
How can I get minute part of the date

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('Minute')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'min(date(%0))';
	with Items do
	begin
		AddItem('1/11/2001 10:10:00 AM');
		AddItem('2/22/2002 11:01:00 AM');
		AddItem('3/13/2003 12:23:00 PM');
		AddItem('4/14/2004 1:11:00 PM');
	end;
end
384
How can I check the hour part only so I know it was afternoon

with ComboBox1 do
begin
	ConditionalFormats.Add('hour(%0)>=12',Null).Bold := True;
	Columns.Add('Date');
	(IUnknown(Columns.Add('Hour')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'hour(%0)';
	with Items do
	begin
		AddItem('1/11/2001 10:00:00 AM');
		AddItem('2/22/2002 11:00:00 AM');
		AddItem('3/13/2003 12:00:00 PM');
		AddItem('4/14/2004 1:00:00 PM');
	end;
end
383
What about a function to get the day in the week, or days since Sunday

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('WeekDay')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'weekday(%0)';
	with Items do
	begin
		AddItem('1/11/2001 10:00:00 AM');
		AddItem('2/22/2002 11:00:00 AM');
		AddItem('3/13/2003 12:00:00 PM');
		AddItem('4/14/2004 1:00:00 PM');
	end;
end
382
Is there any function to get the day of the year or number of days since January 1st

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('Day since January 1st')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'yearday(%0)';
	with Items do
	begin
		AddItem('1/11/2001 10:00:00 AM');
		AddItem('2/22/2002 11:00:00 AM');
		AddItem('3/13/2003 12:00:00 PM');
		AddItem('4/14/2004 1:00:00 PM');
	end;
end
381
How can I display only the day of the date

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('Day')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'day(%0)';
	with Items do
	begin
		AddItem('1/11/2001 10:00:00 AM');
		AddItem('2/22/2002 11:00:00 AM');
		AddItem('3/13/2003 12:00:00 PM');
		AddItem('4/14/2004 1:00:00 PM');
	end;
end
380
How can I display only the month of the date

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('Month')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'month(%0)';
	with Items do
	begin
		AddItem('1/1/2001 10:00:00 AM');
		AddItem('2/2/2002 11:00:00 AM');
		AddItem('3/3/2003 12:00:00 PM');
		AddItem('4/4/2004 1:00:00 PM');
	end;
end
379
How can I get only the year part from a date expression

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('Year')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'year(%0)';
	with Items do
	begin
		AddItem('1/1/2001 10:00:00 AM');
		AddItem('2/2/2002 11:00:00 AM');
		AddItem('3/3/2003 12:00:00 PM');
		AddItem('4/4/2004 1:00:00 PM');
	end;
end
378
Can I convert the expression to date

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Date')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'date(dbl(%0))';
	with Items do
	begin
		AddItem('-1.98');
		AddItem('30000.99');
		AddItem('3561.23');
		AddItem('1232.34');
	end;
end
377
Can I convert the expression to a number, double or float

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Number + 2')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'dbl(%0)+2';
	with Items do
	begin
		AddItem('-1.98');
		AddItem('0.99');
		AddItem('1.23');
		AddItem('2.34');
	end;
end
376
How can I display dates in long format

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('LongFormat')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'longdate(%0)';
	with Items do
	begin
		AddItem('1/1/2001 10:00:00 AM');
		AddItem('2/2/2002 11:00:00 AM');
		AddItem('3/3/2003 12:00:00 PM');
		AddItem('4/4/2004 1:00:00 PM');
	end;
end
375
How can I display dates in short format

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('ShortFormat')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'shortdate(%0)';
	with Items do
	begin
		AddItem('1/1/2001 10:00:00 AM');
		AddItem('2/2/2002 11:00:00 AM');
		AddItem('3/3/2003 12:00:00 PM');
		AddItem('4/4/2004 1:00:00 PM');
	end;
end
374
How can I display the time only of a date expression

with ComboBox1 do
begin
	Columns.Add('Date');
	(IUnknown(Columns.Add('Time')) as EXCOMBOBOXLib_TLB.Column).ComputedField := '''time is:'' + time(date(%0))';
	with Items do
	begin
		AddItem('1/1/2001 10:00:00 AM');
		AddItem('2/2/2002 11:00:00 AM');
		AddItem('3/3/2003 12:00:00 PM');
		AddItem('4/4/2004 1:00:00 PM');
	end;
end
373
Is there any function to display currencies, or money formatted as in the control panel

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Currency')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'currency(dbl(%0))';
	with Items do
	begin
		AddItem('1.23');
		AddItem('2.34');
		AddItem('10000.99');
	end;
end
372
How can I convert the expression to a string so I can look into the date string expression for month's name

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Str')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'str(%0) + '' AA''';
	with Items do
	begin
		AddItem('-1.98');
		AddItem('0.99');
		AddItem('1.23');
		AddItem('2.34');
	end;
end
371
Can I display the absolute value or positive part of the number

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Abs')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'abs(%0)';
	with Items do
	begin
		AddItem('-1.98');
		AddItem('0.99');
		AddItem('1.23');
		AddItem('2.34');
	end;
end
370
Is there any function to get largest number with no fraction part that is not greater than the value

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Floor')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'floor(%0)';
	with Items do
	begin
		AddItem('-1.98');
		AddItem('0.99');
		AddItem('1.23');
		AddItem('2.34');
	end;
end
369
Is there any function to round the values base on the .5 value

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Round')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'round(%0)';
	with Items do
	begin
		AddItem('-1.98');
		AddItem('0.99');
		AddItem('1.23');
		AddItem('2.34');
	end;
end
368
How can I get or display the integer part of the cell

with ComboBox1 do
begin
	Columns.Add('Number');
	(IUnknown(Columns.Add('Int')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'int(%0)';
	with Items do
	begin
		AddItem('-1.98');
		AddItem('0.99');
		AddItem('1.23');
		AddItem('2.34');
	end;
end
367
How can I display names as proper ( first leter of the word must be in uppercase, and the rest in lowercase )

with ComboBox1 do
begin
	(IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'proper(%0)';
	with Items do
	begin
		h := AddItem('root');
		InsertItem(h,Null,'child child');
		InsertItem(h,Null,'child child');
		InsertItem(h,Null,'child child');
		ExpandItem[h] := True;
	end;
end
366
Is there any option to display cells in uppercase

with ComboBox1 do
begin
	(IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'upper(%0)';
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		InsertItem(h,Null,'Chld 3');
		ExpandItem[h] := True;
	end;
end
365
Is there any option to display cells in lowercase

with ComboBox1 do
begin
	(IUnknown(Columns.Add('')) as EXCOMBOBOXLib_TLB.Column).ComputedField := 'lower(%0)';
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		InsertItem(h,Null,'Chld 3');
		ExpandItem[h] := True;
	end;
end
364
How can I mark the cells that has a specified type, ie strings only

with ComboBox1 do
begin
	ConditionalFormats.Add('type(%0) = 8',Null).ForeColor := $ff;
	Columns.Add('');
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,OleVariant(2));
		InsertItem(h,Null,'Chld 3');
		ExpandItem[h] := True;
	end;
end
363
How can I bold the items that contains data or those who displays empty strings

with ComboBox1 do
begin
	ConditionalFormats.Add('not len(%1)=0',Null).Bold := True;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		hC := InsertItem(h,Null,'Child 2');
		CellCaption[OleVariant(hC),OleVariant(1)] := '1';
		InsertItem(h,Null,'Child 3');
		ExpandItem[h] := True;
	end;
end
362
Can I change the background color for items or cells that contains a specified string

with ComboBox1 do
begin
	ConditionalFormats.Add('%0 contains ''hi''',Null).BackColor := $ff;
	Columns.Add('');
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		InsertItem(h,Null,'Chld 3');
		ExpandItem[h] := True;
	end;
end
361
Is there any option to change the fore color for cells or items that ends with a specified string

with ComboBox1 do
begin
	ConditionalFormats.Add('%0 endwith ''22''',Null).ForeColor := $ff;
	Columns.Add('');
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 1.22');
		InsertItem(h,Null,'Child 2.22');
		ExpandItem[h] := True;
	end;
end
360
How can I highlight the cells or items that starts with a specified string

with ComboBox1 do
begin
	ConditionalFormats.Add('%0 startwith ''C''',Null).Underline := True;
	Columns.Add('');
	with Items do
	begin
		h := AddItem('Root');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		InsertItem(h,Null,'SChild 3');
		ExpandItem[h] := True;
	end;
end
359
How can I change the background color or the visual appearance using ebn for a particular column

with ComboBox1 do
begin
	VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
	with Columns do
	begin
		Add('Column 1');
		(IUnknown(Add('Column 2')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exHeaderBackColor] := OleVariant(16777216);
		(IUnknown(Add('Column 3')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exHeaderBackColor] := OleVariant(16777471);
		Add('Column 4');
	end;
end
358
How can I change the background color for a particular column

with ComboBox1 do
begin
	with Columns do
	begin
		Add('Column 1');
		(IUnknown(Add('Column 2')) as EXCOMBOBOXLib_TLB.Column).Def[EXCOMBOBOXLib_TLB.exHeaderBackColor] := OleVariant(8439039);
		Add('Column 3');
	end;
end
357
Does your control support prompt feature

with ComboBox1 do
begin
	Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 
	'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 
	'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 
	'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
	AutoComplete := False;
	(IUnknown(Columns.Add('Column 1')) as EXCOMBOBOXLib_TLB.Column).Prompt := '<img>1</img><i><fgcolor=808080>type to search</fgcolor></i>';
	Items.AddItem(OleVariant(0));
	Items.AddItem(OleVariant(1));
	Items.AddItem(OleVariant(2));
end
356
How can I display the column's header using multiple lines

with ComboBox1 do
begin
	HeaderHeight := 128;
	HeaderSingleLine := False;
	(IUnknown(Columns.Add('This is just a column that should break the header.')) as EXCOMBOBOXLib_TLB.Column).Width := 32;
	Columns.Add('This is just another column that should break the header.');
end
355
How can I sort the value gets listed in the drop down filter window

with ComboBox1 do
begin
	LinesAtRoot := EXCOMBOBOXLib_TLB.exLinesAtRoot;
	MarkSearchColumn := False;
	Description[EXCOMBOBOXLib_TLB.exFilterBarAll] := '';
	Description[EXCOMBOBOXLib_TLB.exFilterBarBlanks] := '';
	Description[EXCOMBOBOXLib_TLB.exFilterBarNonBlanks] := '';
	with (IUnknown(Columns.Add('P1')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		DisplayFilterButton := True;
		DisplayFilterPattern := False;
		FilterList := EXCOMBOBOXLib_TLB.exSortItemsDesc;
	end;
	with (IUnknown(Columns.Add('P2')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		DisplayFilterButton := True;
		DisplayFilterPattern := False;
		FilterList := EXCOMBOBOXLib_TLB.exSortItemsAsc;
	end;
	with Items do
	begin
		h := AddItem('Z3');
		CellCaption[OleVariant(h),OleVariant(1)] := 'C';
		CellCaption[OleVariant(InsertItem(h,Null,'Z1')),OleVariant(1)] := 'B';
		CellCaption[OleVariant(InsertItem(h,Null,'Z2')),OleVariant(1)] := 'A';
		ExpandItem[h] := True;
	end;
end
354
Is there any property to disable the popup/context menu being shown when the user does a right click in the control's label area

with ComboBox1 do
begin
	(IUnknown(Columns.Add('Default')) as EXCOMBOBOXLib_TLB.Column).AllowEditContextMenu := False;
	Items.AddItem(OleVariant(0));
	Items.AddItem(OleVariant(1));
	Items.AddItem(OleVariant(2));
end
353
How can I align the text/caption on the scroll bar

with ComboBox1 do
begin
	ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLowerBackPart] := 'left';
	ScrollPartCaptionAlignment[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exLowerBackPart] := EXCOMBOBOXLib_TLB.LeftAlignment;
	ScrollPartCaption[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exUpperBackPart] := 'right';
	ScrollPartCaptionAlignment[EXCOMBOBOXLib_TLB.exHScroll,EXCOMBOBOXLib_TLB.exUpperBackPart] := EXCOMBOBOXLib_TLB.RightAlignment;
	ColumnAutoResize := False;
	Columns.Add(1);
	Columns.Add(2);
	Columns.Add(3);
	Columns.Add(4);
	Columns.Add(5);
	Columns.Add(6);
end
352
Does you control support RTL languages or if there is a property RightToLeft

with ComboBox1 do
begin
	RightToLeft := True;
	ItemsAllowSizing := EXCOMBOBOXLib_TLB.exResizeItem;
	DrawGridLines := EXCOMBOBOXLib_TLB.exHLines;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exLinesAtRoot;
	ScrollBySingleLine := True;
	DefaultItemHeight := 64;
	with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		Alignment := EXCOMBOBOXLib_TLB.RightAlignment;
		HeaderAlignment := EXCOMBOBOXLib_TLB.RightAlignment;
		EditAlignment := EXCOMBOBOXLib_TLB.RightAlignment;
	end;
	with Items do
	begin
		AddItem('Item 1');
		ItemHeight[InsertItem(AddItem('Parent'),Null,'Item 2')] := 48;
		AddItem('Item 3');
		ExpandItem[ItemByIndex[1]] := True;
	end;
end
351
How do I enable resizing all the items at runtime

with ComboBox1 do
begin
	ItemsAllowSizing := EXCOMBOBOXLib_TLB.exResizeAllItems;
	DrawGridLines := EXCOMBOBOXLib_TLB.exHLines;
	Columns.Add('Column');
	Items.AddItem('Item 1');
	with Items do
	begin
		ItemHeight[AddItem('Item 2')] := 48;
	end;
	Items.AddItem('Item 3');
end
350
How can I remove the filter

with ComboBox1 do
begin
	with (IUnknown(Columns.Add('Column')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		DisplayFilterButton := True;
		FilterType := EXCOMBOBOXLib_TLB.exBlanks;
	end;
	ApplyFilter();
	ClearFilter();
end
349
How do I display the icons being selected in the control's label

with ComboBox1 do
begin
	Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 
	'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 
	'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 
	'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
	Columns.Add('Column');
	with Items do
	begin
		CellImage[OleVariant(AddItem('Image 1')),OleVariant(0)] := 1;
		CellImage[OleVariant(AddItem('Image 2')),OleVariant(0)] := 2;
		CellImage[OleVariant(AddItem('Image 3')),OleVariant(0)] := 3;
	end;
	AssignEditImageOnSelect[0] := True;
	Value := 'Image 2';
end
348
How do I select a value

with ComboBox1 do
begin
	IntegralHeight := True;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
	TreeColumnIndex := 1;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		h := AddItem('Root 1.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2';
		ExpandItem[h] := True;
		h := AddItem('Root 2.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
	end;
	Value := 'Root 1.1';
end
347
How do I select a value

with ComboBox1 do
begin
	IntegralHeight := True;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
	TreeColumnIndex := 1;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		h := AddItem('Root 1.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2';
		ExpandItem[h] := True;
		h := AddItem('Root 2.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
	end;
	Select[OleVariant(1)] := 'Root 1.2';
end
346
How do change the visual appearance for the drop down border, using EBN

with ComboBox1 do
begin
	VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
	DropDownBorder := EXCOMBOBOXLib_TLB.AppearanceEnum($1000000);
end
345
How do I remove the drop down's border

with ComboBox1 do
begin
	DropDownBorder := EXCOMBOBOXLib_TLB.None2;
end
344
How can I change the foreground color for edit controls

with ComboBox1 do
begin
	ForeColorEdit := RGB(255,0,0);
	IntegralHeight := True;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
	TreeColumnIndex := 1;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		h := AddItem('Root 1.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2';
		ExpandItem[h] := True;
		h := AddItem('Root 2.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
	end;
	Select[OleVariant(0)] := 'Root 1.1';
end
343
How can I change the background color for edit controls

with ComboBox1 do
begin
	BackColorEdit := RGB(255,0,0);
	IntegralHeight := True;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
	TreeColumnIndex := 1;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		h := AddItem('Root 1.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2';
		ExpandItem[h] := True;
		h := AddItem('Root 2.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
	end;
	Select[OleVariant(0)] := 'Root 1.1';
end
342
How can I hide the drop down buttons when the control loses the focus

with ComboBox1 do
begin
	HideDropDownButton := True;
	IntegralHeight := True;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
	TreeColumnIndex := 1;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		h := AddItem('Root 1.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2';
		ExpandItem[h] := True;
		h := AddItem('Root 2.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
	end;
end
341
How can I ensure that the drop down portions doesn't show partial items

with ComboBox1 do
begin
	IntegralHeight := True;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
	TreeColumnIndex := 1;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		h := AddItem('Root 1.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2';
		ExpandItem[h] := True;
		h := AddItem('Root 2.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
	end;
end
340
How can I close the drop down window when user double clicks it

with ComboBox1 do
begin
	CloseOnDblClk := True;
	LinesAtRoot := EXCOMBOBOXLib_TLB.exGroupLinesAtRoot;
	TreeColumnIndex := 1;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		h := AddItem('Root 1.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 2.1')),OleVariant(1)] := 'Child 2.2';
		ExpandItem[h] := True;
		h := AddItem('Root 2.1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'Root 2.2';
		CellCaption[OleVariant(InsertItem(h,Null,'Child 1.1')),OleVariant(1)] := 'Child 1.2';
	end;
end
339
How do I get the handle of the drop down window

with ComboBox1 do
begin
	Columns.Add(ComboBox1.hWndDropDown);
end
338
How do I specify the height of the control's label

with ComboBox1 do
begin
	LabelHeight := 34;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
337
The control selects the portion of text that doesn't match with the selected item. How can I avoid that

with ComboBox1 do
begin
	AutoSelect := False;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
336
How can I show the drop down window as soon as user starts typing in the control

with ComboBox1 do
begin
	AutoDropDown := True;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
335
How do I change the text in the edit or label area

with ComboBox1 do
begin
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
	EditText[OleVariant(0)] := 'Test';
end
334
How do I lock or make read-only the control

with ComboBox1 do
begin
	Locked := True;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
333
How do I let user to resize only the height of the drop down window, at runtime

with ComboBox1 do
begin
	AllowSizeGrip := True;
	AllowHResize := False;
	MinWidthList := 100;
	MinHeightList := 100;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
332
How do I let user to resize only the width of the drop down window, at runtime

with ComboBox1 do
begin
	AllowSizeGrip := True;
	AllowVResize := False;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
331
How do I let user to resize the drop down window, at runtime

with ComboBox1 do
begin
	AllowSizeGrip := True;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
330
How do I specify the height of the drop down window

with ComboBox1 do
begin
	HeightList[Null] := 400;
	MinWidthList := 100;
	AllowSizeGrip := True;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
329
How do I specify the minimum height of the drop down window

with ComboBox1 do
begin
	MinHeightList := 100;
	AllowSizeGrip := True;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
328
How do I specify the width of the drop down window

with ComboBox1 do
begin
	WidthList[Null] := 100;
	AllowSizeGrip := True;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
327
How do I specify the minimum width of the drop down window

with ComboBox1 do
begin
	MinWidthList := 100;
	AllowSizeGrip := True;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
326
I have multiple columns, how can I display a single edit in the control's label

with ComboBox1 do
begin
	SingleEdit := True;
	Columns.Add('Column 1');
	Columns.Add('Column 2');
	with Items do
	begin
		CellCaption[OleVariant(AddItem('Item 1')),OleVariant(1)] := 'SubItem 1';
		CellCaption[OleVariant(AddItem('Item 2')),OleVariant(1)] := 'SubItem 2';
		CellCaption[OleVariant(AddItem('Item 3')),OleVariant(1)] := 'SubItem 3';
	end;
end
325
How do I turn off the auto complete feature

with ComboBox1 do
begin
	AutoComplete := False;
	Columns.Add('Column');
	with Items do
	begin
		AddItem('Item 3');
		AddItem('Item 1');
		AddItem('Item 2');
	end;
end
324
The control supports three styles: Simple, DropDown and DropDownList. How can I change the style

with ComboBox1 do
begin
	Style := EXCOMBOBOXLib_TLB.DropDownList;
end
323
Is there any option to align the header to the left and the data to the right

with ComboBox1 do
begin
	(IUnknown(Columns.Add('Left')) as EXCOMBOBOXLib_TLB.Column).Alignment := EXCOMBOBOXLib_TLB.LeftAlignment;
	with (IUnknown(Columns.Add('Right')) as EXCOMBOBOXLib_TLB.Column) do
	begin
		Alignment := EXCOMBOBOXLib_TLB.RightAlignment;
		HeaderAlignment := EXCOMBOBOXLib_TLB.RightAlignment;
		EditAlignment := EXCOMBOBOXLib_TLB.RightAlignment;
	end;
	with Items do
	begin
		CellCaption[OleVariant(AddItem('left')),OleVariant(1)] := 'right';
	end;
end
322
How do I change the control's border, using your EBN files

with ComboBox1 do
begin
	VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
	Appearance := EXCOMBOBOXLib_TLB.AppearanceEnum($1000000);
end
321
Can I change the default border of the tooltip, using your EBN files

with ComboBox1 do
begin
	ToolTipDelay := 1;
	ToolTipWidth := 364;
	VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
	Background[EXCOMBOBOXLib_TLB.exToolTipAppearance] := $1000000;
	(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
320
Can I change the background color for the tooltip

with ComboBox1 do
begin
	ToolTipDelay := 1;
	ToolTipWidth := 364;
	Background[EXCOMBOBOXLib_TLB.exToolTipBackColor] := $ff;
	(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
319
Does the tooltip support HTML format

with ComboBox1 do
begin
	ToolTipDelay := 1;
	ToolTipWidth := 364;
	(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := '<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>';
end
318
Can I change the forecolor for the tooltip

with ComboBox1 do
begin
	ToolTipDelay := 1;
	ToolTipWidth := 364;
	Background[EXCOMBOBOXLib_TLB.exToolTipForeColor] := $ff;
	(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
317
Can I change the foreground color for the tooltip

with ComboBox1 do
begin
	ToolTipDelay := 1;
	ToolTipWidth := 364;
	(IUnknown(Columns.Add('tootip')) as EXCOMBOBOXLib_TLB.Column).ToolTip := '<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>';
end
316
How can I merge cells

with ComboBox1 do
begin
	DrawGridLines := EXCOMBOBOXLib_TLB.exAllLines;
	MarkSearchColumn := False;
	Columns.Add('C1');
	Columns.Add('C2');
	Columns.Add('C3');
	with Items do
	begin
		h := AddItem('this cell merges the first two columns');
		CellMerge[OleVariant(h),OleVariant(0)] := OleVariant(1);
		h := AddItem(Null);
		CellCaption[OleVariant(h),OleVariant(1)] := 'this cell merges the last two columns';
		CellMerge[OleVariant(h),OleVariant(1)] := OleVariant(2);
		h := AddItem('this cell merges the all three columns');
		CellMerge[OleVariant(h),OleVariant(0)] := OleVariant(1);
		CellMerge[OleVariant(h),OleVariant(0)] := OleVariant(2);
		h := AddItem('this draws a divider item');
		ItemDivider[h] := 0;
	end;
end
315
How can I merge cells

with ComboBox1 do
begin
	MarkSearchColumn := False;
	TreeColumnIndex := -1;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Cell 1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
		h := AddItem('This is bit of text merges all cells in the item');
		ItemDivider[h] := 0;
		CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment;
	end;
end
314
How can I change the color for separator / dividers items

with ComboBox1 do
begin
	MarkSearchColumn := False;
	TreeColumnIndex := -1;
	ScrollBySingleLine := False;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Cell 1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
		h := AddItem(Null);
		ItemDivider[h] := 0;
		ItemDividerLine[h] := EXCOMBOBOXLib_TLB.DoubleDotLine;
		ItemDividerLineAlignment[h] := EXCOMBOBOXLib_TLB.DividerCenter;
		ItemHeight[h] := 6;
		SelectableItem[h] := False;
		h := AddItem('Cell 2');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
	end;
end
313
How can I add separator - dividers items

with ComboBox1 do
begin
	MarkSearchColumn := False;
	TreeColumnIndex := -1;
	ScrollBySingleLine := False;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Cell 1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
		h := AddItem(Null);
		ItemDivider[h] := 0;
		ItemDividerLine[h] := EXCOMBOBOXLib_TLB.DoubleDotLine;
		ItemDividerLineAlignment[h] := EXCOMBOBOXLib_TLB.DividerCenter;
		ItemHeight[h] := 6;
		SelectableItem[h] := False;
		h := AddItem('Cell 2');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
	end;
end
312
Can I change the style of the line being displayed by a divider item

with ComboBox1 do
begin
	MarkSearchColumn := False;
	TreeColumnIndex := -1;
	ScrollBySingleLine := False;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Cell 1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
		h := AddItem('This is bit of text that''s displayed on the entire item, divider.');
		ItemDivider[h] := 0;
		ItemDividerLine[h] := EXCOMBOBOXLib_TLB.DoubleDotLine;
		CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment;
		ItemHeight[h] := 24;
	end;
end
311
Can I remove the line being displayed by a divider item

with ComboBox1 do
begin
	MarkSearchColumn := False;
	TreeColumnIndex := -1;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Cell 1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
		h := AddItem('This is bit of text that''s displayed on the entire item, divider.');
		ItemDivider[h] := 0;
		ItemDividerLine[h] := EXCOMBOBOXLib_TLB.EmptyLine;
		CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment;
	end;
end
310
How can I display a divider item, merging all cells

with ComboBox1 do
begin
	MarkSearchColumn := False;
	TreeColumnIndex := -1;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Cell 1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
		h := AddItem('This is bit of text that''s displayed on the entire item, divider.');
		ItemDivider[h] := 0;
		CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment;
	end;
end
309
How can I fix or lock items

with ComboBox1 do
begin
	Columns.Add('Default');
	with Items do
	begin
		LockedItemCount[EXCOMBOBOXLib_TLB.exTop] := 1;
		CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exTop,0]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.';
		ItemBackColor[LockedItem[EXCOMBOBOXLib_TLB.exTop,0]] := $bac4c4;
		LockedItemCount[EXCOMBOBOXLib_TLB.exBottom] := 2;
		CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exBottom,0]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.';
		ItemBackColor[LockedItem[EXCOMBOBOXLib_TLB.exBottom,0]] := $bac4c4;
		CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exBottom,1]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.';
		ItemBackColor[LockedItem[EXCOMBOBOXLib_TLB.exBottom,1]] := $bababa;
	end;
end
308
How can I fix or lock an item on the bottom side of the control

with ComboBox1 do
begin
	Columns.Add('Default');
	with Items do
	begin
		LockedItemCount[EXCOMBOBOXLib_TLB.exBottom] := 1;
		CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exBottom,0]),OleVariant(0)] := 'This is a locked item, fixed to the bottom side of the control.';
		h := AddItem('Root 1');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		ExpandItem[h] := True;
	end;
end
307
How can I fix or lock an item on the top of the control

with ComboBox1 do
begin
	Columns.Add('Default');
	with Items do
	begin
		LockedItemCount[EXCOMBOBOXLib_TLB.exTop] := 1;
		CellCaption[OleVariant(LockedItem[EXCOMBOBOXLib_TLB.exTop,0]),OleVariant(0)] := 'This is a locked item, fixed to the top side of the control.';
		h := AddItem('Root 1');
		InsertItem(h,Null,'Child 1');
		InsertItem(h,Null,'Child 2');
		ExpandItem[h] := True;
	end;
end
306
Is there any function to limit the height of the items when I display it using multiple lines

with ComboBox1 do
begin
	ScrollBySingleLine := True;
	Columns.Add('C1');
	Columns.Add('C2');
	with Items do
	begin
		h := AddItem('Cell 1');
		CellCaption[OleVariant(h),OleVariant(1)] := 'This is bit of text that''s shown on multiple lines. This is bit of text that''s shown on multiple lines.';
		CellSingleLine[OleVariant(h),OleVariant(1)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
		ItemMaxHeight[h] := 48;
	end;
end
305
Why I cannot center my cells in the column

with ComboBox1 do
begin
	TreeColumnIndex := -1;
	DrawGridLines := EXCOMBOBOXLib_TLB.exRowLines;
	(IUnknown(Columns.Add('Default')) as EXCOMBOBOXLib_TLB.Column).Alignment := EXCOMBOBOXLib_TLB.CenterAlignment;
	Items.AddItem('item 1');
	Items.AddItem('item 2');
	Items.AddItem('item 3');
end
304
How can I align the cell to the left, center or to the right

with ComboBox1 do
begin
	TreeColumnIndex := -1;
	DrawGridLines := EXCOMBOBOXLib_TLB.exRowLines;
	Columns.Add('Default');
	with Items do
	begin
		CellHAlignment[OleVariant(AddItem('left')),OleVariant(0)] := EXCOMBOBOXLib_TLB.LeftAlignment;
		CellHAlignment[OleVariant(AddItem('center')),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment;
		CellHAlignment[OleVariant(AddItem('right')),OleVariant(0)] := EXCOMBOBOXLib_TLB.RightAlignment;
	end;
end
303
How do I apply HTML format to a cell

with ComboBox1 do
begin
	TreeColumnIndex := -1;
	Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' + 
	'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' + 
	'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' + 
	'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
	HTMLPicture['p1'] := 'c:\exontrol\images\zipdisk.gif';
	HTMLPicture['p2'] := 'c:\exontrol\images\auction.gif';
	Columns.Add('Default');
	with Items do
	begin
		h := AddItem('The following item shows some of the HTML format supported:');
		CellHAlignment[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.CenterAlignment;
		h := AddItem('<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <u' + 
	'>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolor' + 
	'</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> ');
		CellCaptionFormat[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML;
		CellSingleLine[OleVariant(h),OleVariant(0)] := EXCOMBOBOXLib_TLB.exCaptionWordWrap;
	end;
end
302
How can I change the font for a cell

with ComboBox1 do
begin
	Columns.Add('Default');
	Items.AddItem('std font');
	with Items do
	begin
		CellCaptionFormat[OleVariant(AddItem('this <font tahoma;12>is a bit of text with</font> a different font')),OleVariant(0)] := EXCOMBOBOXLib_TLB.exHTML;
	end;
end
301
How can I change the font for a cell

with ComboBox1 do
begin
	Columns.Add('Default');
	Items.AddItem('default font');
	f := (IUnknown(ComObj.CreateComObject(ComObj.ProgIDToClassID('StdFont'))) as stdole_TLB.StdFont);
	with f do
	begin
		Name := 'Tahoma';
		Size := 12;
	end;
	with Items do
	begin
		CellFont[OleVariant(AddItem('new font')),OleVariant(0)] := (IUnknown(f) as stdole_TLB.StdFont);
	end;
end